package com.wang.eurekaconsumer.controller;

import com.wang.eurekaconsumer.remote.HelloRemote;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description
 * @Author wly
 * @Date 2018/6/27 17:16
 */
@RestController
@RequestMapping("/a")
public class HelloController {
    @Autowired
    private HelloRemote helloRemote;

    @RequestMapping("/c")
    public String hello(String name) {
        return helloRemote.hahaha(name);
    }
}
